﻿<Window x:Class="CECB.Project.ProjectCatogry"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ProjectCatogry"  Height="317" Width="418" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded"
         xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit">


    <Grid Height="334">
        <Rectangle Margin="0,20,21,76" Stroke="Black" RadiusY="19.5" RadiusX="19.5" StrokeThickness="3">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF878684" Offset="0" />
                    <GradientStop Color="White" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Button Content="Insert" Height="32" HorizontalAlignment="Left" Margin="74,206,0,0" Name="button_catgryInsert" VerticalAlignment="Top" Width="75" Click="button_catgryInsert_Click" />
        <Button Content="Delete" Height="32" HorizontalAlignment="Left" Margin="154,206,0,0" Name="button_catDelete" VerticalAlignment="Top" Width="75" Click="button_catDelete_Click" />
        <Button Content="Update" Height="32" HorizontalAlignment="Left" Margin="74,206,0,0" Name="button_catUpdate" VerticalAlignment="Top" Width="75" Click="button_catUpdate_Click_1" />
        <Button Content="Close" Height="32" HorizontalAlignment="Left" Margin="235,206,0,0" Name="button_close" VerticalAlignment="Top" Width="75" Click="button_close_Click_1" />
        <WrapPanel Height="37" Background="Black" HorizontalAlignment="Left" Margin="6,136,0,0" Name="wrapPanel_UpdateCatName" VerticalAlignment="Top" Width="360">
            <Label Content="Update Catgry Name" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label1" Width="145" />
            <TextBox Height="37" Name="textBox_EnterCatName" Width="207" />
        </WrapPanel>
        <WrapPanel Height="39" Background="Black" HorizontalAlignment="Left" Margin="6,75,0,0" Name="wrapPanel_SearchDetails" VerticalAlignment="Top" Width="358">
            <Label Content="Search Catogry name" Height="28" Name="label_projCatName" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Width="145" />
            <toolkit:AutoCompleteBox Name="CatgoryAutocompleteTextBox" Width="207" Height="39" ValueMemberPath="cat_name" FilterMode="Contains" ItemsSource="{Binding}" TabIndex="1" IsTabStop="True" FontSize="18" Background="White" Opacity="1" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2" SelectionChanged="CatgoryAutocompleteTextBox_SelectionChanged">
                <toolkit:AutoCompleteBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Path=cat_name}" />
                            <TextBlock Text=" - " />
                            <TextBlock Text="{Binding Path=cat_reference}" />
                        </StackPanel>
                    </DataTemplate>
                </toolkit:AutoCompleteBox.ItemTemplate>
            </toolkit:AutoCompleteBox>
            <Canvas Name="canvas1">
                <WrapPanel Orientation="Vertical"></WrapPanel>
            </Canvas>
        </WrapPanel>
        <WrapPanel Height="28" HorizontalAlignment="Left" Margin="28,20,0,0" Name="wrapPanel4" VerticalAlignment="Top" Width="313">
            <Button Content="Page Insert Type" Height="27" Name="ButtonInsertPage" Width="123" Click="ButtonInsertPage_Click" />
            <Button Content="Page Update/Delete Type"  Height="25" Name="button_updtDel" Width="159" Click="button_updtDel_Click" />
        </WrapPanel>
        <WrapPanel Height="37" Background="Black" HorizontalAlignment="Left" Margin="6,136,0,0" Name="wrapPanel_EnterNewCat" VerticalAlignment="Top" Width="360">
            <Label Content="Enter New Catogry name" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label2" Width="169" />
            <Canvas Name="canvas2">
                <WrapPanel Orientation="Vertical" />
            </Canvas>
            <TextBox Height="38" Name="textBox_EntrNewCatNam" Width="185" />
        </WrapPanel>
        <Label Content="label_CatRef" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label_CatRef" Width="81" Margin="285,47,30,259" />
    </Grid>
</Window>